package com.xbongbong.pro.businesstage.pojo.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Auther: yingjianfeng
 * @Date: 2021/12/3 13:59
 * @Description: 阶段跳转
 */
@Getter
@Setter
@ToString
public class StageJumpDTO extends StageJumpBaseDTO {
    /**
     * 业务类型
     */
//    @NotNull(message = "{dto.msg.businessData.businessType.NotNull}")
    private Integer businessType;

    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.businessData.saasMark.NotNull}")
    private Integer saasMark;
    /**
     * 阶段流程id
     */
    @NotNull(message = "阶段流程id不能为空")
    private Long stageProcessId;
    /**
     * 原阶段的阶段id 为空则为开始阶段
     */
    private Long fromStageId;
    /**
     * 目标阶段的阶段id 为空则为开始阶段
     */
    private Long toStageId;
    /**
     * 是否是阶段视图 0不是 1是
     */
    private Integer isStageView;

    public StageJumpDTO() {
    }

    public StageJumpDTO(Integer saasMark, Integer businessType, Long formId, Long dataId, Long stageProcessId, Long fromStageId, Long toStageId) {
        super(saasMark, businessType, formId, dataId);
        this.stageProcessId = stageProcessId;
        this.fromStageId = fromStageId;
        this.toStageId = toStageId;
    }
}
